<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui"
     template="../Template.xhtml"
>
<ui:define name="title">Manage City</ui:define>
<ui:define name="body">


<h:form id="form">
<br/><br/>

<br/><br/><br/><br/>
 <p:growl id="msgs" showDetail="true"  />
    <p:dataTable id="basicDT" var="car" value="#{statisticMB.listePaiement()}" rows="10"
                         paginator="true"
                         paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
                         rowsPerPageTemplate="5,10,15" >
      
        <p:column headerText="Id">
            <h:outputText value="#{car.idPaiement}" />
        </p:column>
        
        <p:column headerText="client">
            <h:outputText value="#{car.client.idUtilisateur}" />
        </p:column>
        
      
        <p:column headerText="title">
            <h:outputText value="#{car.offre.titre}" />
        </p:column>
        
        <p:column headerText="Raison">
            <h:outputText value="#{car.raison}" />
        </p:column>
        
        <p:column headerText="type user">
            <h:outputText value="#{car.client.tranExp}" />
        </p:column>
       
        <p:column style="width:32px;text-align: center">
           
          <p:commandButton ajax="false" value="confirmer le paiement" action="#{statisticMB.confirm(car.idPaiement)}"/>
         </p:column>
    </p:dataTable>
     
  
 </h:form>
 <br/><br/><br/><br/>
</ui:define>

</ui:composition>